package com.yicao.yicaomall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yicao.yicaomall.common.utils.PageUtils;
import com.yicao.yicaomall.product.entity.BrandEntity;
import com.yicao.yicaomall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author yicao
 * @email yicaozyq@gmail.com
 * @date 2023-10-31 16:57:54
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存时，将品牌名称和分类名称查出来
     * @param categoryBrandRelation
     */
    void saveDetails(CategoryBrandRelationEntity categoryBrandRelation);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

